#include "stddef.h"
#include "string.h"

/* strtok(): Searches s for next token delimited by any character from ct. Non-NULL s indicates the first call 
             of a sequence. If a token is found, it is NULL-terminated and returned, otherwise NULL is returned. 
			 ct need not be identical for each call in a sequence. */
static char * last_string;

char * strtok(const char * const s, const char * const ct)
{
	size_t i, x;

	for(i = 0; i < strlen(s); i++)
	{
		for(x = 0; x < strlen(ct); x++)
		{
			if(s[i] == ct[x]){ return (char *)(((size_t)s) + i); }
		}
	}

	return (char *)NULL;
}

